home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v8n07.arc
/
GET_ID.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-03-13
|
575b
|
35 lines
ECHO OFF
ID
SET ID=unknown
FOR %%n IN (48 49 50 51 52 53 54 55) DO IF ERRORLEVEL 2%%n SET ID=2%%n
GOTO %ID%
:255
ECHO PC
GOTO end
:254
ECHO PC XT (early)
GOTO end
:253
ECHO PCjr
GOTO end
:252
ECHO AT -or- XT-286 -or- PS/2 model 50 and 60
GOTO end
:251
ECHO XT (later)
GOTO end
:250
ECHO PS/2 model 30
GOTO end
:249
ECHO PC convertible
GOTO end
:248
ECHO PS/2 model 70 and 80
GOTO end
:unknown
ECHO Unknown machine type
:end
ECHO The machine ID code is now available for use in your
ECHO other batch files -- in the environment variable ID.